package com.xyoto.community.vo;

import com.xyoto.community.utils.PictureUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel("话题列表VO")
public class TopicListVo {
    @ApiModelProperty("话题id")
    @NotBlank(message = "不能为空")
    Integer id;

    @ApiModelProperty("话题标题")
    @NotBlank(message = "不能为空")
    String title;

    @ApiModelProperty("话题内容")
    @NotBlank(message = "不能为空")
    String content;

    @ApiModelProperty("话题背景")
    String path;

    @ApiModelProperty("话题关注数")
    Integer followCount;

    @ApiModelProperty("话题动态数")
    Integer dynamicCount;

    @ApiModelProperty("话题审核状态")
    String authenticationStatus;

    public void setPath(String path) {
        this.path = PictureUtils.addPrefix(path);
    }
}
